<?php echo form_open(base_url().'admin/pelatihan_con/tambah_pelatihan')?>
    <table style="border: 1px solid brown;padding-left: 20px" align="center" width="50%">
        <tr>
            <td align="center"><h1>BUAT PELATIHAN BARU</h1></td>
        </tr>
        <tr>
            <td align="center">
                <?php
                    if(validation_errors()){
                        echo '<div id="error_message">';
                        echo validation_errors();
                        echo '<input id="sembunyi" type="button" value="Sembunyikan"/>';
                        echo '</div>';
                    }
                ?>
            </td>
        </tr>
        <tr>
            <td width="50%" align="left"><b>Kode*: </b></td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <?php
                    echo form_input('KODE_PELATIHAN');
                ?>
            </td>
        </tr>
        <tr>
            <td width="50%" align="left"><b>Nama* : </b></td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <?php
                    echo form_input('NAMA_PELATIHAN');
                ?>
            </td>
        </tr>
        <tr>
            <td width="50%" align="left"><b>Jenis* : </b></td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <?php
                    if($ada_jenis)
                        echo form_dropdown('JENIS',$jenis);
                    else
                        echo 'Pilihan jenis pelatihan belum tersedia';
                ?>
            </td>
        </tr>
        <tr>
            <td width="50%" align="left"><b>Seri* : </b></td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <?php
                    if($ada_seri)
                        echo form_dropdown('SERI_PELATIHAN',$seri);
                    else
                        echo 'Pilihan seri pelatihan belum ada';
                ?>
            </td>
        </tr>
        <tr>
            <td align="left">
                <b>Preview :</b>
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $data = array(
                      'name'        => 'PREVIEW',
                      'id'          => 'PREVIEW',
                      'rows'        => '80',
                      'cols'        => '80',
                      'class'       => 'cleditor',  
                    );
                    echo form_textarea($data);
                ?>
                
            </td>
        </tr>
        <tr>
            <td align="left">
                <b>Deskripsi :</b>
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $data = array(
                      'name'        => 'DESKRIPSI',
                      'id'          => 'DESKRIPSI',
                      'rows'        => '80',
                      'cols'        => '80',
                      'class'       => 'cleditor',  
                    );
                    echo form_textarea($data);
                ?>
                
            </td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <b>Objective :</b> 
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $data = array(
                      'name'        => 'OBJECTIVE',
                      'id'          => 'OBJECTIVE',
                      'rows'        => '80',
                      'cols'        => '80',
                      'class'       => 'cleditor',  
                    );
                    echo form_textarea($data);
                ?>
                
            </td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <b>Tools :</b> 
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $data = array(
                      'name'        => 'TOOLS',
                      'id'          => 'TOOLS',
                      'rows'        => '80',
                      'cols'        => '80',
                      'class'       => 'cleditor',  
                    );
                    echo form_textarea($data);
                ?>
                
            </td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <b>Prerequisite : </b>
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $data = array(
                      'name'        => 'PREREQ',
                      'id'          => 'PREREQ',
                      'rows'        => '80',
                      'cols'        => '80',
                      'class'       => 'cleditor',  
                    );
                    echo form_textarea($data);
                ?>
                
            </td>
        </tr>
        <tr>
            <td width="50%" align="left">
                <b>Rel Course : </b>
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $data = array(
                      'name'        => 'REL_COURSE',
                      'id'          => 'REL_COURSE',
                      'rows'        => '80',
                      'cols'        => '80',
                      'class'       => 'cleditor',  
                    );
                    echo form_textarea($data);
                ?>
                
            </td>
        </tr>
        <tr>
            <td align="left">
                <?php
                    $submitcon = array('value'=>'Submit');
                    echo form_submit($submitcon);
                    echo '&nbsp';
                    $resetcon = array('value'=>'Reset');
                    echo form_reset($resetcon);
                    echo '&nbsp';
                    $script='onClick="location.href=\''.  base_url().'admin/pelatihan_con\'"';
                    echo form_button('','Kembali',$script);
                ?>
            </td>
        </tr>
    </table>
<?php echo form_close()?> 